package wap.dco;

import wap.dco.factory.ILogFactory;
import wap.dco.factory.impl.LogFactoryImpl;

public class MainTest {

	public static void main(String[] args) {
		String str_log = "1411348340	115.206.160.65	CN3301	00022F84285DD27CBD2F66AD874BC2FE	db.auto.sohu.com	/photo_1020/pic2608418.shtml	10531	13	-   -	0	0	3	-	-	00022F84285DD27CBD2F66AD874BC2FE	-	8	4	1	3	{\"mb\":0, \"mbOs\" : 0, \"page_type\": \"0\", \"cookie_fyid\": \"00022F84285DD27CBD2F66AD874BC2FE\"}";
		ILogFactory factory = new LogFactoryImpl();

		Log log = factory.createLog(str_log);

		System.out.println(log);

		str_log = "\"15/Sep/2014:23:59:56 +0800\",\"111.27.251.146\",\"-\",\"m.sohu.com\",\"GET /n/404314346/?wscrid=1137_13 HTTP/1.1\",\"http://m.sohu.com/n/404314346/?wscrid=1137_13\",\"Mozilla/5.0 (Linux; U; Android 4.1.1; zh-cn; Lenovo A590 Build/JRO03C) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.1 Mobile Safari/534.30 baiduboxapp/5.1 (Baidu; P1 4.1.1)\",\"_smuid=F23tCM8Uovltxe2hPPcI2i&c=52&_smuid_type=2&v=3\",\"1\",\"-\",\"200\",\"F23tCM8Uovltxe2hPPcI2i\",\"0.822\",\"10613\",\"10.13.82.32:12152\",\"200\",\"0.043\",\"-\",\"-\",\"{s_m_u:-}\",\"m-nginx-88\"";
		log = factory.createLog(str_log);
		System.out.println(log);
	}
}
